package com.xiangha.springboot.service.impl;

import com.xiangha.springboot.pojo.Goods;
import com.xiangha.springboot.dao.IGoodsDao;
import com.xiangha.springboot.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author itlong
 * @since 2025-09-19 03:40:35
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<IGoodsDao, Goods> implements IGoodsService {
@Autowired
private IGoodsDao goodsDao;
    @Override
    public List<Goods> getHotGoods() {
        return goodsDao.getHotGoods();
    }

    @Override
    public Integer getId(Integer id) {
        return goodsDao.getId(id);
    }
}
